package org.codegallery.jpagal.dao.impl;

import org.codegallery.jpagal.entity.User;
import org.mybatis.spring.SqlSessionTemplate;

public class UserDaoImpl {
	private SqlSessionTemplate sqlSession;

	public SqlSessionTemplate getSqlSession() {
		return sqlSession;
	}

	public void setSqlSession(SqlSessionTemplate sqlSession) {
		this.sqlSession = sqlSession;
	}
	
	public User getUser(String userId) {
		return (User) sqlSession.selectOne("com.codegallery.jpagal.Mapper1", userId);
	}

}
